package com.android.progressdemo;

import android.os.Bundle;
import android.view.View;
import android.widget.SeekBar;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class InfoActivity extends AppCompatActivity {

    private ProgressLayout progressLayout;
//    private InfoView infoView;
//    private ProgressView progressView;
    private SeekBar seekBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_infoview);
        progressLayout = findViewById(R.id.progressLayout);
//        infoView = findViewById(R.id.infoView);
//        progressView = findViewById(R.id.progressView);
        seekBar = findViewById(R.id.seekBar);

        seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
//                infoView.setProgressWithAnim(progress);
//                progressView.setProgressWithAnim(progress);
                progressLayout.setProgressWithAnim(progress);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });



    }


}